<%@page import="com.liferay.portal.kernel.util.GetterUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@ include file="/init.jsp" %>


<%
	String backURL = ParamUtil.getString(request, "backURL");
	boolean showHeader = ParamUtil.getBoolean(request, "showHeader", true);
%>

<c:if test="<%= showHeader %>">
	<liferay-ui:header backLabel="&laquo; Back to List" title="Book Details" backURL="<%= backURL %>"/>
</c:if>

<%
	Book book = null;
	int bookId = ParamUtil.getInteger(request, "bookId");

	if (bookId > 0L) {
		book = BookLocalServiceUtil.getBook(bookId);
	}
%>

<c:if test="<%= Validator.isNotNull(book) %>">
	<table border="2">
		<tr ALIGN="center">
			<th>&nbsp;&nbsp;Book Title&nbsp;&nbsp;</th>
			<td>&nbsp;&nbsp;<%= book.getBookTitle() %>&nbsp;&nbsp;</td>
		</tr>
		
		<tr ALIGN="center">
			<th>&nbsp;&nbsp;Author&nbsp;&nbsp;</th>
			<td>&nbsp;&nbsp;<%= book.getAuthor() %>&nbsp;&nbsp;</td>
		</tr>
		

		
					
	</table>
</c:if>